<?php
//GZid - Connexion par Facebook
//Copyright 2011 Hugo Caille

include("core.php");

if(FACEBOOK_ID==""){ exit(0); } //Quitte si l'API Facebook est inactive

define("REDIRECT",SERVER_URL."/facebook2.php");

$auth_url="https://graph.facebook.com/oauth/authorize?scope=email&client_id=".FACEBOOK_ID."&redirect_uri=".REDIRECT;
header("Location: ".$auth_url);

?>
